import java.util.Scanner;

public class SwitchCaseExpressTest4 {
    public static void main(String[] args) {
        //从键盘输入月份的数字，然后输出它对应的季节。
        //3,4,5春季，6,7,8夏季,9,10,11秋季,12,1,2冬季
        Scanner input = new Scanner(System.in);

        System.out.print("请输入月份值[1,12]：");
        int month = input.nextInt();

        switch (month){
            case 3,4,5 -> System.out.println("春季");
            case 6,7,8 -> System.out.println("夏季");
            case 9,10,11 -> System.out.println("秋季");
            case 12,1,2 -> System.out.println("冬季");
            default -> System.out.println("错误");
        }
    }
}
